module.exports = (app) => { 
    const mongoose = require("mongoose");
    mongoose.connect("mongodb://Derreisende:JayKon123@127.0.0.1:27017/booksea", {
      useNewUrlParser: true,
      useFindAndModify: true,
      useUnifiedTopology: true,
      useCreateIndex: true,
    }).then(()=>{
      console.log("数据库连接成功");
    }).catch((err)=>{
      console.log("数据库连接失败",err);
    });
    require("require-all")(__dirname + "/../models");
  };